package me.zingon.doc.dao;

import me.zingon.doc.model.Document;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
* Created by ZTCGenerator<zingon@aliyun.com> on 2018-5-31.
*/
public interface DocumentDao extends Mapper<Document>{

    int save(Document document);

    int del(Document document);

    int deleteByIds(@Param("ids") Integer[] ids);

    int update(Document document);

    Document getById(@Param("id") Integer id);

    List<Document> list(Document document);

    Document getByUrlWithUserId(@Param("url") String url, @Param("userId") Integer id);
}